package chixing.day20.proxy.homework.work2;


public class OrderRecord {

    private Member member;
    private String roomType;
    private int sumDay;
    public OrderRecord(){}
    public OrderRecord(Member member, String roomType, int sumDay) {
        this.member = member;
        this.roomType = roomType;
        this.sumDay = sumDay;

    }
    /*
    * 入住记录
    * */
    public void Record(){
        System.out.println("入住会员编号:" + member.getVipId() +
                ",房间类型:" + roomType +
                ",入住天数" + sumDay);
    }

    public Member getMember() {
        return member;
    }

    public void setMember(Member member) {
        this.member = member;
    }

    public String getRoomType() {
        return roomType;
    }

    public void setRoomType(String roomType) {
        this.roomType = roomType;
    }

    public int getSumDay() {
        return sumDay;
    }

    public void setSumDay(int sumDay) {
        this.sumDay = sumDay;
    }

    @Override
    public String toString() {
        return "OrderRecord{" +
                "member=" + member +
                ", roomType='" + roomType + '\'' +
                ", sumDay=" + sumDay +
                '}';
    }
}
